package cn.exrick.xboot.base.entity

import cn.exrick.xboot.core.base.XbootBaseEntityKt
import cn.exrick.xboot.core.common.utils.SnowFlakeUtil
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

/**
 * @author Fei
 */
@Entity
@Table(name = "su_exam_room")
@TableName("su_exam_room")
@ApiModel(value = "考场信息")
data class ExamRoom(

        @ApiModelProperty("考场名字")
        var examName: String? = "",

        @ApiModelProperty("考场区域")
        var areaId: String? = null,

        @ApiModelProperty("考场位置")
        var examAddress: String? = ""

) : XbootBaseEntityKt() {

    @Id
    @TableId
    override var id: String = SnowFlakeUtil.nextId().toString()


    companion object {
        const val serialVersionUID = 1L
    }
}